/*
 * Copyright (c) 2024. hallele, Inc All rights reserved.
 */

package cn.hallele.ms.demo.integrartion.action.post;

import cn.hallele.ms.demo.integrartion.dto.PostDTO;
import cn.hallele.ms.demo.integrartion.action.post.feign.PostFeign;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * TypicodeDomainService
 *
 * @author anle5
 * @since 2024/9/15 15:54
 */
@Slf4j
@Service
@RequiredArgsConstructor
public class PostIntegrationService {
    private final PostFeign postFeign;

    public List<PostDTO> queryPosts() {
        return postFeign.posts();
    }
}
